package mensa.upb;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class Info extends Activity {
	private static final int MENU_BACK = 0;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.info);
		ActivityRegistry.register(this);
	}

	public boolean onCreateOptionsMenu(Menu menu) {
		menu.add(1, MENU_BACK, 2, "Zurueck").setIcon(
				android.R.drawable.ic_menu_close_clear_cancel);
		return true;
	}

	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case MENU_BACK:
			this.finish();
			return true;
		}
		return false;
	}

}
